package com.zcxy360.sandtable.domain;

import com.zcxy360.sandtable.domain.StageUnit;
import com.zcxy360.sandtable.domain.StageUnitExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StageUnitMapper {
	
//
	StageUnit selectByPrimaryKeyWithCascade(Integer unitId);
	List<StageUnit> listByStageId(Integer stageId);
	int insertBatch(List<StageUnit> StageUnits);
	int deleteBatch(int[] unitIds);
	void sort(@Param("unitId1") Integer unitId1,@Param("unitId2")  Integer unitId2);
	int selectMaxSort(Integer stageId);
	void create(List<StageUnit> stageUnits);
//
	
    long countByExample(StageUnitExample example);

    int deleteByExample(StageUnitExample example);

    int deleteByPrimaryKey(Integer unitId);

    int insert(StageUnit record);

    int insertSelective(StageUnit record);

    List<StageUnit> selectByExample(StageUnitExample example);

    StageUnit selectByPrimaryKey(Integer unitId);

    int updateByExampleSelective(@Param("record") StageUnit record, @Param("example") StageUnitExample example);

    int updateByExample(@Param("record") StageUnit record, @Param("example") StageUnitExample example);

    int updateByPrimaryKeySelective(StageUnit record);

    int updateByPrimaryKey(StageUnit record);
}